package com.kantboot.file.service;

import com.kantboot.file.entity.CesImage;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface CesImageService {

    /**
     * 上传图片
     */
    CesImage uploadImage(MultipartFile img);

    /**
     * 根据id显示图片
     * @param id
     * @param response
     */
    void showImageById(Integer id, HttpServletResponse response);

}
